-- GENERATED SPELL FOR [Baroness Dorothea Millstipe] --


function spell0_19875(pUnit, Event) --@Mana Burn,n/a--
pUnit:FullCastSpellOnTarget(29405,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19875', 3000, 1)
end

function spell1_19875(pUnit, Event) --@Mind Flay,n/a--
pUnit:FullCastSpellOnTarget(29570,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19875', 3000, 1)
end

function spell2_19875(pUnit, Event) --@Shadowform,Self--
pUnit:FullCastSpellOnTarget(29406,pUnit)
pUnit:RegisterEvent('Sorts_19875', 615, 1)
end

function Sorts_19875(pUnit, Event)
local choix_sorts_19875 = math.random(0, 2)
if choix_sorts_19875 == 0 then
pUnit:RegisterEvent('spell0_19875', 1, 1)
end
if choix_sorts_19875 == 1 then
pUnit:RegisterEvent('spell1_19875', 1, 1)
end
if choix_sorts_19875 == 2 then
pUnit:RegisterEvent('spell2_19875', 1, 1)
end
end

function mob19875_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19875', math.random(1500, 3000), 1)
end

function mob19875_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19875_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19875_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19875, 1, 'mob19875_Action')
RegisterUnitEvent(19875, 2, 'mob19875_Leave')
RegisterUnitEvent(19875, 3, 'mob19875_Kill')
RegisterUnitEvent(19875, 4, 'mob19875_Die')
